package com.zhouixi.ras_js_java.enums;

public enum ResultEnum {
	UNKONW_ERROR(401,"未知错误"),
	SUCCESS(200,"成功"),
	ERROR(402,"失败"),
	ID_NOT_IN_SCOPE(403,"id不在范围内"),
	PERMISSION_DENIED(405,"权限不足"),
	CODE_TIMEOUT(406,"验证码过期")
	;
	private Integer code;
	private String msg;
	
	ResultEnum(Integer code,String msg) {
		this.code = code;
		this.msg = msg;
	}
 
	public Integer getCode() {
		return code;
	}
 
	public String getMsg() {
		return msg;
	}
}
